home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / set_this_player < prev    next >
Text File  |  2001-04-06  |  968b  |  31 lines

  1. SYNOPSIS
  2.         void set_this_player(object ob)
  3.  
  4. DESCRIPTION
  5.         Change the current command giver to <ob>. <ob> may be 0 if
  6.         you want to 'deactivate' the current command giver.
  7.  
  8.         This efun is not privileged, therefore it should be redefined
  9.         by a nomask simul_efun which then either completely disables
  10.         the efun or at least performs some security checks.
  11.         It is easy to undermine a mudlibs security using this efun.
  12.  
  13.         The efun is available only in 3.2.1, a possible simulation for
  14.         3.2 could be:
  15.  
  16.           void set_this_player(object ob)
  17.           {
  18.             /* Insert your privilege checks here */
  19.             if (living(ob))
  20.               funcall(bind_lambda(#'enable_commands, ob));
  21.           }
  22.  
  23.         (suggested by Mark Lewis (Nostradamus@Zebedee))
  24.  
  25. HISTORY
  26.         Introduced in 3.2.1.
  27.         LDMud 3.2.6 added the value 0 as acceptable parameter.
  28.  
  29. SEE ALSO
  30.         set_this_object(E), this_player(E)
  31.